package org.ihelpuoo.weboo.upload;

import javax.servlet.http.HttpServletRequest;

public class Upload
{

	public static String getUrlPath(HttpServletRequest request, String home)
	{
		String root = request.getSession().getServletContext().getRealPath("/");
		home = request.getContextPath() + home.substring(root.length()).replaceAll("\\\\","/");
		return home;
	}

	public static final String	ICON_IMG_TYPE	= "jpg";

}
